import 'package:flutter/material.dart';
import 'package:love_app/common/su.dart';
import 'package:love_app/pages/mine/mine_ui/mine_bottom.dart';
import 'package:love_app/providers/share_provider.dart';
import 'package:provider/provider.dart';

import 'mine_ui/mine_top.dart';

class MinePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final ShareProvider _shareProvider =
        Provider.of<ShareProvider>(context, listen: false);
    return Scaffold(
      appBar: Su().appBar(
        "我的",
        colors: _shareProvider.themeColor,
      ),
      body: _scrollbar(),
    );
  }

  // 显示进度条
  Widget _scrollbar(){
    return SingleChildScrollView(
      child: _body(),
    );
  }

  // 页面内容
  Widget _body() {
    return Container(
      // height: Su().h(750),
      width: Su().w(750),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          MineTopBox(),
          MineBottom(),
        ],
      ),
    );
  }
}
